package com.global.emc.core.exception.impl;

import com.global.emc.core.exception.IEMCException;

/**
 * 
 * @Description: [EMC异常]
 * @Author: [Joly]
 * @CreateDate: [2013年12月16日 下午1:33:02]
 * @UpdateUser: [Joly]
 * @UpdateDate: [2013年12月16日 下午1:33:02]
 * @UpdateRemark: [说明本次修改内容]
 * @Version: [v1.0]
 * 
 */
public class EMCException extends Exception implements IEMCException {

	private static final long serialVersionUID = 8020824262984252856L;

	public EMCException(String message) {
		super(message);
	}

	public EMCException(String message, Throwable cause) {
		super(message, cause);
	}

	private String localizedMessage;
	private String[] args;

	@Override
	public String getLocalizedMessage() {
		if (null == localizedMessage)
			return super.getMessage();

		return localizedMessage;
	}

	public void setLocalizedMessage(String localizedMessage) {
		this.localizedMessage = localizedMessage;
	}

	public String[] getArgs() {
		return args;
	}

	public void setArgs(String[] args) {
		this.args = args;
	}

}
